Integrand size = 27, antiderivative size = 154 \[ \int (3+3 \sin (e+f x))^{3/2} (c+d \sin (e+f x))^n \, dx=-\frac {18 \cos (e+f x) (c+d \sin (e+f x))^{1+n}}{d f (3+2 n) \sqrt {3+3 \sin (e+f x)}}+\frac {18 (c-d (5+4 n)) \cos (e+f x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-n,\frac {3}{2},\frac {d (1-\sin (e+f x))}{c+d}\right ) (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c+d}\right )^{-n}}{d f (3+2 n) \sqrt {3+3 \sin (e+f x)}} \]
[Out]
Time = 0.15 (sec) , antiderivative size = 160, normalized size of antiderivative = 1.04, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {2842, 21, 2855, 72, 71} \[ \int (3+3 \sin (e+f x))^{3/2} (c+d \sin (e+f x))^n \, dx=\frac {2 a^2 (c-d (4 n+5)) \cos (e+f x) (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c+d}\right )^{-n} \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-n,\frac {3}{2},\frac {d (1-\sin (e+f x))}{c+d}\right )}{d f (2 n+3) \sqrt {a \sin (e+f x)+a}}-\frac {2 a^2 \cos (e+f x) (c+d \sin (e+f x))^{n+1}}{d f (2 n+3) \sqrt {a \sin (e+f x)+a}} \]
[In]
[Out]
Rule 21
Rule 71
Rule 72
Rule 2842
Rule 2855
Rubi steps \begin{align*} \text {integral}& = -\frac {2 a^2 \cos (e+f x) (c+d \sin (e+f x))^{1+n}}{d f (3+2 n) \sqrt {a+a \sin (e+f x)}}+\frac {2 \int \frac {(c+d \sin (e+f x))^n \left (-\frac {1}{2} a^2 (c-5 d-4 d n)-\frac {1}{2} a^2 (c-5 d-4 d n) \sin (e+f x)\right )}{\sqrt {a+a \sin (e+f x)}} \, dx}{d (3+2 n)} \\ & = -\frac {2 a^2 \cos (e+f x) (c+d \sin (e+f x))^{1+n}}{d f (3+2 n) \sqrt {a+a \sin (e+f x)}}-\frac {(a (c-d (5+4 n))) \int \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^n \, dx}{d (3+2 n)} \\ & = -\frac {2 a^2 \cos (e+f x) (c+d \sin (e+f x))^{1+n}}{d f (3+2 n) \sqrt {a+a \sin (e+f x)}}-\frac {\left (a^3 (c-d (5+4 n)) \cos (e+f x)\right ) \text {Subst}\left (\int \frac {(c+d x)^n}{\sqrt {a-a x}} \, dx,x,\sin (e+f x)\right )}{d f (3+2 n) \sqrt {a-a \sin (e+f x)} \sqrt {a+a \sin (e+f x)}} \\ & = -\frac {2 a^2 \cos (e+f x) (c+d \sin (e+f x))^{1+n}}{d f (3+2 n) \sqrt {a+a \sin (e+f x)}}-\frac {\left (a^3 (c-d (5+4 n)) \cos (e+f x) (c+d \sin (e+f x))^n \left (-\frac {a (c+d \sin (e+f x))}{-a c-a d}\right )^{-n}\right ) \text {Subst}\left (\int \frac {\left (\frac {c}{c+d}+\frac {d x}{c+d}\right )^n}{\sqrt {a-a x}} \, dx,x,\sin (e+f x)\right )}{d f (3+2 n) \sqrt {a-a \sin (e+f x)} \sqrt {a+a \sin (e+f x)}} \\ & = -\frac {2 a^2 \cos (e+f x) (c+d \sin (e+f x))^{1+n}}{d f (3+2 n) \sqrt {a+a \sin (e+f x)}}+\frac {2 a^2 (c-d (5+4 n)) \cos (e+f x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-n,\frac {3}{2},\frac {d (1-\sin (e+f x))}{c+d}\right ) (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c+d}\right )^{-n}}{d f (3+2 n) \sqrt {a+a \sin (e+f x)}} \\ \end{align*}
Time = 4.35 (sec) , antiderivative size = 133, normalized size of antiderivative = 0.86 \[ \int (3+3 \sin (e+f x))^{3/2} (c+d \sin (e+f x))^n \, dx=-\frac {6 \sqrt {3} \cos (e+f x) (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c+d}\right )^{-n} \left ((-c+d (5+4 n)) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-n,\frac {3}{2},-\frac {d (-1+\sin (e+f x))}{c+d}\right )+(c+d) \left (\frac {c+d \sin (e+f x)}{c+d}\right )^{1+n}\right )}{d f (3+2 n) \sqrt {1+\sin (e+f x)}} \]
[In]
[Out]
\[\int \left (a +a \sin \left (f x +e \right )\right )^{\frac {3}{2}} \left (c +d \sin \left (f x +e \right )\right )^{n}d x\]
[In]
[Out]
\[ \int (3+3 \sin (e+f x))^{3/2} (c+d \sin (e+f x))^n \, dx=\int { {\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {3}{2}} {\left (d \sin \left (f x + e\right ) + c\right )}^{n} \,d x } \]
[In]
[Out]
Timed out. \[ \int (3+3 \sin (e+f x))^{3/2} (c+d \sin (e+f x))^n \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int (3+3 \sin (e+f x))^{3/2} (c+d \sin (e+f x))^n \, dx=\int { {\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {3}{2}} {\left (d \sin \left (f x + e\right ) + c\right )}^{n} \,d x } \]
[In]
[Out]
\[ \int (3+3 \sin (e+f x))^{3/2} (c+d \sin (e+f x))^n \, dx=\int { {\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {3}{2}} {\left (d \sin \left (f x + e\right ) + c\right )}^{n} \,d x } \]
[In]
[Out]
Timed out. \[ \int (3+3 \sin (e+f x))^{3/2} (c+d \sin (e+f x))^n \, dx=\int {\left (a+a\,\sin \left (e+f\,x\right )\right )}^{3/2}\,{\left (c+d\,\sin \left (e+f\,x\right )\right )}^n \,d x \]
[In]
[Out]